package com.work.vo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class UserRegisterVO {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 6, max = 16, message = "账户长度不能超过范围")
    private String username;
    @NotBlank(message = "密码不能为空")
    @Size(min = 8, max = 32, message = "密码长度不能超过范围")
    private String password;
    @NotBlank(message = "验证码不能为空")
    private String code;
}
